package com.aimei520.service.api;

import java.security.NoSuchAlgorithmException;
import java.util.List;

import javax.servlet.http.HttpSession;

import com.aimei520.po.admin.User;
import com.aimei520.po.meun.Menu;

public interface LoginService {

	/**
	 * 只适用二级菜单
	 * @param user
	 * @return 菜单集合
	 */
	List<Menu> findMenu(User user);
	
	/**
	 * 一次查询，可多级循环
	 * @param user
	 * @return
	 */
	List<Menu> findMenu_byRole(User user);
	
	boolean doLogin(User user,HttpSession session)throws NoSuchAlgorithmException;
}
